/*
 * 练习7：模拟抛硬币时出现的正反面情况。
 */
package chapter3_Operators;

import java.util.Random;
import publicLibs.p;

public class E7_CoinToss {

	public static void main(String[] args) {
		Random r = new Random();
		boolean b = false;
		int i = 0;
		while (i++ <10){
			b = r.nextBoolean();
			if (b){
				p.rintln("You win ^.^");
			} else{
				p.rintln("You lose T_T");
			}
		}
	}

}
